package backend_0010;

public class Rect {
    public double width;
    public double height;

    public Rect(double width,double height){
        this.width=width;
        this.height=height;
    }

    public Rect(){
        width=10;
        height=10;
    }

    public double area(){
        return width*height;
    }

    public double perimeter(){
        return (width+height)*2;
    }
}
